/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.oop;

/**
 * <p>Project: javase2203 - Demo
 * <p>Powered by webrx On 2022-07-20 17:35:19
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    public static void main(String[] args) {
        A a = new A();
        System.out.println(a.pf(3));

        B b = new B();
        System.out.println(b.pf(3));

        System.out.println(b.myPf(3));


        System.out.println();

        var c = new C();
        System.out.println(c.pf());
        System.out.println(c.pf(3));
        System.out.println(c.pf(1.5));
        System.out.println();



    }
}
